#include	"CallBack.h"
#include	"IControl.h"

ICallBack::ICallBack()
{
}

ICallBack::~ICallBack()
{
}

CallBackFunc::CallBackFunc(Proc proc, void * userData)
	:	ICallBack()
	,	m_proc(proc)
	,	m_userData(userData)
{
}

CallBackFunc::~CallBackFunc()
{
	m_proc = 0;
	m_userData = 0;
}

void CallBackFunc::call(IControl * sender)
{
	m_proc(sender, m_userData);
}

